import JsrLoad from "./JsrLoad.js"
//初始加载
export default function RunLoad(srclist,resolve ) {

    if(qguan.inBrowser){
        import('../root/WebRoot.js').then((WebRoot) => {
        qguan.root=new WebRoot.default();
            let load =new JsrLoad();
            load.load(srclist[0])


    })
    }else {
        import('../root/NodeRoot.js').then((NodeRoot) => {
            qguan.root=new nodeRoot.default();
            let load =new JsrLoad();
              load.load(srclist[0])

        })


    }
    resolve("ok 200")
  /*  let load=qguan.findBend(srclist[3]);;

    if(load){
        load.load(...srclist);
    }else {
        throw new Error(srclist[3]+" load没有加载");
    }*/
}
